Remove long-deprecated page-horizontally signal
authorMatthias Clasen <mclasen@redhat.com>
Sat, 28 Aug 2010 23:26:42 +0000 (19:26 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 28 Aug 2010 23:26:42 +0000 (19:26 -0400)
This signal has been superseded by GTK_MOVEMENT_HORIZONTAL_PAGES
long ago. This breaks the GtkTextView ABI.

gtk/gtktextview.c
gtk/gtktextview.h

index e471b65119bd936050d7c9d8e108f782d4255abf..050aebbb25e801924fc9472a669d2ab28d28a946 100644 (file)
@@ -344,9 +344,6 @@ static void gtk_text_view_move_cursor       (GtkTextView           *text_view,
                                              GtkMovementStep        step,
                                              gint                   count,
                                              gboolean               extend_selection);
-static void gtk_text_view_page_horizontally (GtkTextView          *text_view,
-                                             gint                  count,
-                                             gboolean              extend_selection);
 static gboolean gtk_text_view_move_viewport (GtkTextView           *text_view,
                                              GtkScrollStep          step,
                                              gint                   count);
@@ -609,7 +606,6 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
   container_class->forall = gtk_text_view_forall;
 
   klass->move_cursor = gtk_text_view_move_cursor;
-  klass->page_horizontally = gtk_text_view_page_horizontally;
   klass->set_anchor = gtk_text_view_set_anchor;
   klass->insert_at_cursor = gtk_text_view_insert_at_cursor;
   klass->delete_from_cursor = gtk_text_view_delete_from_cursor;
@@ -826,32 +822,6 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
                  G_TYPE_INT, 
                  G_TYPE_BOOLEAN);
 
-  /**
-   * GtkTextView::page-horizontally:
-   * @text_view: the object which received the signal
-   * @count: the number of @step units to move
-   * @extend_selection: %TRUE if the move should extend the selection
-   *
-   * The ::page-horizontally signal is a 
-   * <link linkend="keybinding-signals">keybinding signal</link> 
-   * which can be bound to key combinations to allow the user
-   * to initiate horizontal cursor movement by pages.  
-   * 
-   * This signal should not be used anymore, instead use the
-   * #GtkTextview::move-cursor signal with the #GTK_MOVEMENT_HORIZONTAL_PAGES
-   * granularity.
-   */
-  signals[PAGE_HORIZONTALLY] =
-    g_signal_new (I_("page-horizontally"),
-                 G_OBJECT_CLASS_TYPE (gobject_class),
-                 G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
-                 G_STRUCT_OFFSET (GtkTextViewClass, page_horizontally),
-                 NULL, NULL,
-                 _gtk_marshal_VOID__INT_BOOLEAN,
-                 G_TYPE_NONE, 2,
-                 G_TYPE_INT,
-                 G_TYPE_BOOLEAN);
-  
   /**
    * GtkTextView::move-viewport:
    * @text_view: the object which received the signal
@@ -5522,16 +5492,6 @@ gtk_text_view_move_cursor (GtkTextView     *text_view,
   gtk_text_view_move_cursor_internal (text_view, step, count, extend_selection);
 }
 
-static void
-gtk_text_view_page_horizontally (GtkTextView     *text_view,
-                                 gint             count,
-                                 gboolean         extend_selection)
-{
-  gtk_text_view_move_cursor_internal (text_view, GTK_MOVEMENT_HORIZONTAL_PAGES,
-                                      count, extend_selection);
-}
-
-
 static gboolean
 gtk_text_view_move_viewport (GtkTextView     *text_view,
                              GtkScrollStep    step,
index 7517b25728ba10b59a3bebdbc460a29ac5846c89..1391c1b23214a9c0fdf15f33e7643845f41d805a 100644 (file)
@@ -88,14 +88,6 @@ struct _GtkTextViewClass
                         gint            count,
                         gboolean        extend_selection);
 
-  /* FIXME should be deprecated in favor of adding GTK_MOVEMENT_HORIZONTAL_PAGES
-   * or something in GTK 2.2, was put in to avoid adding enum values during
-   * the freeze.
-   */
-  void (* page_horizontally) (GtkTextView *text_view,
-                              gint         count,
-                              gboolean     extend_selection);
-
   /* move the "anchor" (what Emacs calls the mark) to the cursor position */
   void (* set_anchor)  (GtkTextView    *text_view);